package com.qcq.springcloud.clients.fallback;

import com.qcq.springcloud.clients.UserFeignApi;
import com.qcq.springcloud.pojo.User;
import org.springframework.stereotype.Component;

/**
 * @author ：qcq
 * @date ：Created in 2020/11/27 20:54
 * @description：
 */
@Component
public class UserFeignApiFallBack implements UserFeignApi {

    @Override
    public User queryByUsername(String username) {
        User user = new User();
        user.setName("-1");
        user.setUsername(username);
        user.setNickName("--该UserFeinFallBack服务已暂停--");
        return user;
    }
}
